<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8" isELIgnored="false"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Menu</title>
<style type="text/css">
body {
	background-color: honeydew;
}

#content {
	background-color: rgb(255, 255, 255, 0.95);
	width: 420px;
	height: 510px;
	padding: 10px;
	margin-top: 8%;
	margin-left: auto;
	margin-right: auto;
	display: block;
}
.header {
	width: 100%;
	height: 80px;
	margin-bottom: 20px;
	border-bottom: 2px solid #a0a0a0;
	text-align: center;
}
table{
	font-family: verdana,arial,sans-serif;
	font-size:13px;
	color:#333333;
	border-width: 1px;
	border-color: #dcdcdc;
	border-collapse: collapse;
	border-radius: 4px
}

table th{
	border-width: 1px;
	padding: 10px;
	border-style: solid;
	border-color: #dcdcdc;
	background-color: #dedede;
}

table td{
	border-width: 1px;
	padding: 10px;
	border-style: solid;
	border-color: #dcdcdc;
	background-color: #ffffff;
}


a {
	color: #4a4744;
	font-size: 13px;
	text-decoration: none;
}

a:hover {
	color: #ff7d0a;
}

a:active {
	color: #ee7204;
}

</style>

</head>
<body>

	<div id="content">
		<div class="header">
			<h2 style="color: cadetblue;">MerChatList</h2>
		</div>
		<table border="1">
			<tr><th>头像</th><th>名字</th><th>地址</th><th>操作</th></tr>
			<c:forEach items="${mlist }" var="m">
				<tr>
					<th><img src="${m.portrait }"  style = "width:200px;height:100px;"/></th><br/>
					<th>${m.name }</th><br/>
					<th>${m.addr }</th><br/>
					<th><a href="ShowFoodsByMerchant?mid=${m.id }">进入店家</a></th><br/>
				</tr>
			</c:forEach>
		</table>
	</div>
</body>
</html>